package org.veloxbot.api.wrappers;

import java.awt.Color;

/**
 * @author Caleb
 */
public class DTMBranch {

	private final Color color;

	private final int offsetX;
	private final int offsetY;

	private final int tolerance;

	/**
	 * Constructs a DTMBranch which consists of the given parameters.
	 *
	 * @param color     The color to look for.
	 * @param offsetX   The X-Offset which is relative to its parent's (DTMRoot) location.
	 * @param offsetY   The Y-Offset which is relative to its parent's (DTMRoot) location.
	 * @param tolerance The tolerance of the color to look for.
	 */
	public DTMBranch(final Color color, final int offsetX, final int offsetY, final int tolerance) {
		this.color = color;
		this.tolerance = tolerance;
		this.offsetX = offsetX;
		this.offsetY = offsetY;
	}

	/**
	 * Gets the constructed color.
	 *
	 * @return The constructed color.
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * Gets the tolerance of the constructed color.
	 *
	 * @return The tolerance of the constructed color.
	 */
	public int getTolerance() {
		return tolerance;
	}

	/**
	 * Gets the constructed X-Offset.
	 *
	 * @return The constructed X-Offset.
	 */
	public int getOffsetX() {
		return offsetX;
	}

	/**
	 * Gets the constructed Y-Offset.
	 *
	 * @return The constructed Y-Offset.
	 */
	public int getOffsetY() {
		return offsetY;
	}
}
